package com.fg.zrcommunity.service.impl;

import com.fg.zrcommunity.bean.Admin;
import com.fg.zrcommunity.mapper.AdminMapper;
import com.fg.zrcommunity.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public List<Admin> selectAll() throws Exception {
        return adminMapper.selectAll();
    }

    @Override
    public void setState(int id) throws Exception {
        adminMapper.setState(id);
    }

}
